
package guoan.repository;

import java.util.List;

import guoan.domain.Menu;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface MenuRepository extends PagingAndSortingRepository<Menu, Long>,
        JpaSpecificationExecutor<Menu> {

    List<Menu> findByRootIdOrderByOrderIdDesc(Long l);

    Long countByRootId(Long rootId);

}
